package com.example.beautymakeup.utils;

public class StringUtil {

    /**
     * 判断字符串是否为空
     * @param param
     * @return
     */
    public static boolean isEmpty(String param){
        return param == null || "".equals(param.trim());
    }

    public static String removePrefix(String original, String prefix) {
        if (original.startsWith(prefix)) {
            return original.substring(prefix.length());
        } else {
            // 如果原始字符串不以指定前缀开头，返回原始字符串
            return original;
        }
    }
}
